package com.lyw.gulimall.product.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lyw.gulimall.product.entity.BrandEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 品牌
 *
 * @author liyawei
 * @email liyawei@gmail.com
 * @date 2022-05-31 11:06:15
 */
@Mapper
public interface BrandDao extends BaseMapper<BrandEntity> {

    void updateShowStatusById(@Param("brand") BrandEntity brand);

    IPage<Map<String, Object>> selectPageList(Page<Map<String, Object>> result, @Param(Constants.WRAPPER) LambdaQueryWrapper<BrandEntity> lqw);
}
